find the element that appears once in an array